﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OgilvyOne.UKNow.DAL;
using OgilvyOne.UKNow.Globalization;
using OgilvyOne.UKNow.IDAL;

namespace OgilvyOne.UKNow.DALFactory
{
   public class MemberReminderDALFactory
    {
       public static readonly IDALMemberReminder ChineseMemberReminder = new MemberReminderDAL(LanguageType.cn);
       public static readonly IDALMemberReminder EnglishMemberReminder = new MemberReminderDAL(LanguageType.en);

       public static IDALMemberReminder Create(int langID)
        {
            return langID == (int)LanguageType.cn ? ChineseMemberReminder : EnglishMemberReminder;
        }
    }
}
